<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ page import="com.yzyz.bean.scenic.PictureBean" %>
<%@ page import="java.util.List" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	int hotelId = Integer.valueOf(request.getParameter("hotelId"));
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>图片管理</title>
<%@include file="/Common/jsp/common.jsp" %>	
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/Admin/Hotel/Picture/picture.css" />
</head>
<body>
	<div id="divContainer">
		<div id="divUploadContainer">
			<form enctype="multipart/form-data"  action="<%=response.encodeURL(request.getContextPath()+"/management/hotel.htm?method=addPicture")%>" method="post" id="frUpload">
				<fieldset>
					<legend>
						图片上传
					</legend>
					<table>
						<tr>
							<td width=200>
								<input type="file" name="image" id="iptImage" width=100 height=20/>
								<input type="hidden" name="hotelId" value="<%=hotelId%>" id="hotelId"/>
							</td>
							<td>
								<div class="divBtnContainer">
									<button name="上传" type="button" onclick="YZYZ.Admin.Hotel.Picture.checkImage()">上传</button>
								</div>
							</td>
						</tr>
					</table>
				</fieldset>
			</form>
		</div>
	</div>
	<div id="divViewZone">
		<div class="divImageZone">
			<img src="" id="imgView" width="300" height="225" class="imgView"/>
		</div>
		<div id="divInfo" class="divPictureInfo">
		</div>
	</div>
	<input type="hidden" value="<%=hotelId %>" id="hotelId"/>
	<input type="hidden" value="<%=response.encodeURL(request.getContextPath()+"/management/hotel.htm?method=updatePicture")%>" id="updateUrl"/>
	<input type="hidden" value="<%=response.encodeURL(request.getContextPath()+"/management/hotel.htm?method=deletePicture&pictureId=")%>" id="deleteUrl"/>
	<input type="hidden" value="<%=response.encodeURL(request.getContextPath()+"/management/hotel.htm?method=getImageForEdit&hotelId=" + hotelId + "&pictureId=")%>" id="editUrl"/>
	<input type="hidden" value="<%=response.encodeURL(request.getContextPath()+"/management/hotel.htm?method=getImage&hotelId=" + hotelId + "&pictureId=")%>" id="viewUrl"/>
	<input type="hidden" value="<%=response.encodeURL(request.getContextPath()+"/management/hotel.htm?method=viewPictures")%>" id="loadUrl"/>
</body>
	<script type="text/javascript" src="${pageContext.request.contextPath}/Admin/Hotel/Picture/picture.js"></script>
</html>